package Visual;

import java.awt.Color;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

import Logica.*;
import Logica.Objetos.Objeto;
import Logica.Pisos.Agua;
import Logica.Pisos.Arena;
import Logica.Pisos.ArenaMovediza;
import Logica.Pisos.Asfalto;
import Logica.Pisos.Concreto;
import Logica.Pisos.Lava;
import Logica.Pisos.Piso;
import Logica.Pisos.Portal;
import Logica.Robot.SRCivil;
import Logica.Robot.SRMilitar;
import Logica.Robot.Short_Round;

public abstract class NivelVisual {
	
	protected JLabel eti1;protected JLabel eti2;protected JLabel eti3;protected JLabel eti4;protected JLabel eti5;
	protected JLabel eti6;protected JLabel eti7;protected JLabel eti8;protected JLabel eti9;protected JLabel eti10;
	protected JLabel eti11;protected JLabel eti12;protected JLabel eti13;protected JLabel eti14;protected JLabel eti15;
	protected JLabel eti16;protected JLabel eti17;protected JLabel eti18;protected JLabel eti19;protected JLabel eti20;
	protected JLabel eti21;protected JLabel eti22;protected JLabel eti23;protected JLabel eti24;protected JLabel eti25;
	protected JLabel eti26;protected JLabel eti27;protected JLabel eti28;protected JLabel eti29;protected JLabel eti30;
	protected JLabel eti31;protected JLabel eti32;protected JLabel eti33;protected JLabel eti34;protected JLabel eti35;
	protected JLabel eti36;protected JLabel eti37;protected JLabel eti38;protected JLabel eti39;protected JLabel eti40;
	protected JLabel eti41;protected JLabel eti42;protected JLabel eti43;protected JLabel eti44;protected JLabel eti45;
	protected JLabel eti46;protected JLabel eti47;protected JLabel eti48;protected JLabel eti49;protected JLabel eti50;
	protected JLabel eti51;protected JLabel eti52;protected JLabel eti53;protected JLabel eti54;protected JLabel eti55;
	protected JLabel eti56;protected JLabel eti57;protected JLabel eti58;protected JLabel eti59;protected JLabel eti60;
	protected JLabel eti61;protected JLabel eti62;protected JLabel eti63;protected JLabel eti64;protected JLabel eti65;
	protected JLabel eti66;protected JLabel eti67;protected JLabel eti68;protected JLabel eti69;protected JLabel eti70;
	protected JLabel eti71;protected JLabel eti72;protected JLabel eti73;protected JLabel eti74;protected JLabel eti75;
	protected JLabel eti76;protected JLabel eti77;protected JLabel eti78;protected JLabel eti79;protected JLabel eti80;
	protected JLabel eti81;protected JLabel eti82;protected JLabel eti83;protected JLabel eti84;protected JLabel eti85;
	protected JLabel eti86;protected JLabel eti87;protected JLabel eti88;protected JLabel eti89;protected JLabel eti90;
	protected JLabel eti91;protected JLabel eti92;protected JLabel eti93;protected JLabel eti94;protected JLabel eti95;
	protected JLabel eti96;protected JLabel eti97;protected JLabel eti98;protected JLabel eti99;protected JLabel eti100;
	protected JLabel eti101;protected JLabel eti102;protected JLabel eti103;protected JLabel eti104;protected JLabel eti105;
	protected JLabel eti106;protected JLabel eti107;protected JLabel eti108;protected JLabel eti109;protected JLabel eti110;
	protected JLabel eti111;protected JLabel eti112;protected JLabel eti113;protected JLabel eti114;protected JLabel eti115;
	protected JLabel eti116;protected JLabel eti117;protected JLabel eti118;protected JLabel eti119;protected JLabel eti120;
	protected JLabel eti121;protected JLabel eti122;protected JLabel eti123;protected JLabel eti124;protected JLabel eti125;
	protected JLabel eti126;protected JLabel eti127;protected JLabel eti128;protected JLabel eti129;protected JLabel eti130;
	protected JLabel eti131;protected JLabel eti132;protected JLabel eti133;protected JLabel eti134;protected JLabel eti135;
	protected JLabel eti136;protected JLabel eti137;protected JLabel eti138;protected JLabel eti139;protected JLabel eti140;
	protected JLabel eti141;protected JLabel eti142;protected JLabel eti143;protected JLabel eti144;protected JLabel eti145;
	protected JLabel eti146;protected JLabel eti147;protected JLabel eti148;protected JLabel eti149;protected JLabel eti150;
	protected JLabel eti151;protected JLabel eti152;protected JLabel eti153;protected JLabel eti154;protected JLabel eti155;
	protected JLabel eti156;protected JLabel eti157;protected JLabel eti158;protected JLabel eti159;protected JLabel eti160;
	protected JLabel eti161;protected JLabel eti162;protected JLabel eti163;protected JLabel eti164;protected JLabel eti165;
	protected JLabel eti166;protected JLabel eti167;protected JLabel eti168;protected JLabel eti169;protected JLabel eti170;
	protected JLabel eti171;protected JLabel eti172;protected JLabel eti173;protected JLabel eti174;protected JLabel eti175;
	protected JLabel eti176;protected JLabel eti177;protected JLabel eti178;protected JLabel eti179;protected JLabel eti180;
	protected JLabel eti181;protected JLabel eti182;protected JLabel eti183;protected JLabel eti184;protected JLabel eti185;
	protected JLabel eti186;protected JLabel eti187;protected JLabel eti188;protected JLabel eti189;protected JLabel eti190;
	protected JLabel eti191;protected JLabel eti192;protected JLabel eti193;protected JLabel eti194;protected JLabel eti195;
	protected JLabel eti196;protected JLabel eti197;protected JLabel eti198;protected JLabel eti199;protected JLabel eti200;
	protected JLabel eti201;protected JLabel eti202;protected JLabel eti203;protected JLabel eti204;protected JLabel eti205;
	protected JLabel eti206;protected JLabel eti207;protected JLabel eti208;protected JLabel eti209;protected JLabel eti210;
	protected JLabel eti211;protected JLabel eti212;protected JLabel eti213;protected JLabel eti214;protected JLabel eti215;
	protected JLabel eti216;protected JLabel eti217;protected JLabel eti218;protected JLabel eti219;protected JLabel eti220;
	protected JLabel eti221;protected JLabel eti222;protected JLabel eti223;protected JLabel eti224;protected JLabel eti225;
	protected JLabel eti226;protected JLabel eti227;protected JLabel eti228;protected JLabel eti229;protected JLabel eti230;
	protected JLabel eti231;protected JLabel eti232;protected JLabel eti233;protected JLabel eti234;
	
	protected JPanel Grilla;
	
	protected JLabel[] Arr;
	protected Coordenadas[] ArrCoor;
	protected Grilla gnivelActual;
	
	protected Nivel nivel;
	protected Short_Round rob;
	
	protected NivelVisual(String r){
		Grilla=new JPanel();
		Grilla.setLayout(null);
		Grilla.setSize(640,640);
		
		
		gnivelActual=new Grilla();
		if (r.equals("Civil"))
			rob = new SRCivil(gnivelActual);
		else rob = new SRMilitar(gnivelActual);
		nivel=new Nivel(rob,gnivelActual);
		Arr= new JLabel[234];
		
		eti1=new JLabel();eti2=new JLabel();eti3=new JLabel();eti4=new JLabel();
		eti5=new JLabel();eti6=new JLabel();eti7=new JLabel();eti8=new JLabel();
		eti9=new JLabel();eti10=new JLabel();eti11=new JLabel();eti12=new JLabel();
		eti13=new JLabel();eti14=new JLabel();eti15=new JLabel();eti16=new JLabel();
		eti17=new JLabel();eti18=new JLabel();eti19=new JLabel();eti20=new JLabel();
		eti21=new JLabel();eti22=new JLabel();eti23=new JLabel();eti24=new JLabel();
		eti25=new JLabel();eti26=new JLabel();eti27=new JLabel();eti28=new JLabel();
		eti29=new JLabel();eti30=new JLabel();eti31=new JLabel();eti32=new JLabel();
		eti33=new JLabel();eti34=new JLabel();eti35=new JLabel();eti36=new JLabel();
		eti37=new JLabel();eti38=new JLabel();eti39=new JLabel();eti40=new JLabel();
		eti41=new JLabel();eti42=new JLabel();eti43=new JLabel();eti44=new JLabel();
		eti45=new JLabel();eti46=new JLabel();eti47=new JLabel();eti48=new JLabel();
		eti49=new JLabel();eti50=new JLabel();eti51=new JLabel();eti52=new JLabel();
		eti53=new JLabel();eti54=new JLabel();eti55=new JLabel();eti56=new JLabel();
		eti57=new JLabel();eti58=new JLabel();eti59=new JLabel();eti60=new JLabel();
		eti61=new JLabel();eti62=new JLabel();eti63=new JLabel();eti64=new JLabel();
		eti65=new JLabel();eti66=new JLabel();eti67=new JLabel();eti68=new JLabel();
		eti69=new JLabel();eti70=new JLabel();eti71=new JLabel();eti72=new JLabel();
		eti73=new JLabel();eti74=new JLabel();eti75=new JLabel();eti76=new JLabel();
		eti77=new JLabel();eti78=new JLabel();eti79=new JLabel();eti80=new JLabel();
		eti81=new JLabel();eti82=new JLabel();eti83=new JLabel();eti84=new JLabel();
		eti85=new JLabel();eti86=new JLabel();eti87=new JLabel();eti88=new JLabel();
		eti89=new JLabel();eti90=new JLabel();eti91=new JLabel();eti92=new JLabel();
		eti93=new JLabel();eti94=new JLabel();eti95=new JLabel();eti96=new JLabel();
		eti97=new JLabel();eti98=new JLabel();eti99=new JLabel();eti100=new JLabel();
		eti101=new JLabel();eti102=new JLabel();eti103=new JLabel();eti104=new JLabel();
		eti105=new JLabel();eti106=new JLabel();eti107=new JLabel();eti108=new JLabel();
		eti109=new JLabel();eti110=new JLabel();eti111=new JLabel();eti112=new JLabel();
		eti113=new JLabel();eti114=new JLabel();eti115=new JLabel();eti116=new JLabel();
		eti117=new JLabel();eti118=new JLabel();eti119=new JLabel();eti120=new JLabel();
		eti121=new JLabel();eti122=new JLabel();eti123=new JLabel();eti124=new JLabel();
		eti125=new JLabel();eti126=new JLabel();eti127=new JLabel();eti128=new JLabel();
		eti129=new JLabel();eti130=new JLabel();eti131=new JLabel();eti132=new JLabel();
		eti133=new JLabel();eti134=new JLabel();eti135=new JLabel();eti136=new JLabel();
		eti137=new JLabel();eti138=new JLabel();eti139=new JLabel();eti140=new JLabel();
		eti141=new JLabel();eti142=new JLabel();eti143=new JLabel();eti144=new JLabel();
		eti145=new JLabel();eti146=new JLabel();eti147=new JLabel();eti148=new JLabel();
		eti149=new JLabel();eti150=new JLabel();eti151=new JLabel();eti152=new JLabel();
		eti153=new JLabel();eti154=new JLabel();eti155=new JLabel();eti156=new JLabel();
		eti157=new JLabel();eti158=new JLabel();eti159=new JLabel();eti160=new JLabel();
		eti161=new JLabel();eti162=new JLabel();eti163=new JLabel();eti164=new JLabel();
		eti165=new JLabel();eti166=new JLabel();eti167=new JLabel();eti168=new JLabel();
		eti169=new JLabel();eti170=new JLabel();eti171=new JLabel();eti172=new JLabel();
		eti173=new JLabel();eti174=new JLabel();eti175=new JLabel();eti176=new JLabel();
		eti177=new JLabel();eti178=new JLabel();eti179=new JLabel();eti180=new JLabel();
		eti181=new JLabel();eti182=new JLabel();eti183=new JLabel();eti184=new JLabel();
		eti185=new JLabel();eti186=new JLabel();eti187=new JLabel();eti188=new JLabel();
		eti189=new JLabel();eti190=new JLabel();eti191=new JLabel();eti192=new JLabel();
		eti193=new JLabel();eti194=new JLabel();eti195=new JLabel();eti196=new JLabel();
		eti197=new JLabel();eti198=new JLabel();eti199=new JLabel();eti200=new JLabel();
		eti201=new JLabel();eti202=new JLabel();eti203=new JLabel();eti204=new JLabel();
		eti205=new JLabel();eti206=new JLabel();eti207=new JLabel();eti208=new JLabel();
		eti209=new JLabel();eti210=new JLabel();eti211=new JLabel();eti212=new JLabel();
		eti213=new JLabel();eti214=new JLabel();eti215=new JLabel();eti216=new JLabel();
		eti217=new JLabel();eti218=new JLabel();eti219=new JLabel();eti220=new JLabel();
		eti221=new JLabel();eti222=new JLabel();eti223=new JLabel();eti224=new JLabel();
		eti225=new JLabel();eti226=new JLabel();eti227=new JLabel();eti228=new JLabel();
		eti229=new JLabel();eti230=new JLabel();eti231=new JLabel();eti232=new JLabel();
		eti233=new JLabel();eti234=new JLabel();
		
		eti1.setBounds(0, 0, 34, 34);Grilla.add(eti1);
		eti2.setBounds(34, 0, 34, 34);Grilla.add(eti2);
		eti3.setBounds(68, 0, 34, 34);Grilla.add(eti3);
		eti4.setBounds(102, 0, 34, 34);Grilla.add(eti4);
		eti5.setBounds(136, 0, 34, 34);Grilla.add(eti5);
		eti6.setBounds(170, 0, 34, 34);Grilla.add(eti6);
		eti7.setBounds(204, 0, 34, 34);Grilla.add(eti7);
		eti8.setBounds(238, 0, 34, 34);Grilla.add(eti8);
		eti9.setBounds(272, 0, 34, 34);Grilla.add(eti9);
		eti10.setBounds(306, 0, 34, 34);Grilla.add(eti10);
		eti11.setBounds(340, 0, 34, 34);Grilla.add(eti11);
		eti12.setBounds(374, 0, 34, 34);Grilla.add(eti12);
		eti13.setBounds(408, 0, 34, 34);Grilla.add(eti13);
		eti14.setBounds(442, 0, 34, 34);Grilla.add(eti14);
		eti15.setBounds(476, 0, 34, 34);Grilla.add(eti15);
		eti16.setBounds(510, 0, 34, 34);Grilla.add(eti16);
		eti17.setBounds(544, 0, 34, 34);Grilla.add(eti17);
		eti18.setBounds(578, 0, 34, 34);Grilla.add(eti18);
		eti19.setBounds(0, 34, 34, 34);Grilla.add(eti19);
		eti20.setBounds(34, 34, 34, 34);Grilla.add(eti20);
		eti21.setBounds(68, 34, 34, 34);Grilla.add(eti21);
		eti22.setBounds(102, 34, 34, 34);Grilla.add(eti22);
		eti23.setBounds(136, 34, 34, 34);Grilla.add(eti23);
		eti24.setBounds(170, 34, 34, 34);Grilla.add(eti24);
		eti25.setBounds(204, 34, 34, 34);Grilla.add(eti25);
		eti26.setBounds(238, 34, 34, 34);Grilla.add(eti26);
		eti27.setBounds(272, 34, 34, 34);Grilla.add(eti27);
		eti28.setBounds(306, 34, 34, 34);Grilla.add(eti28);
		eti29.setBounds(340, 34, 34, 34);Grilla.add(eti29);
		eti30.setBounds(374, 34, 34, 34);Grilla.add(eti30);
		eti31.setBounds(408, 34, 34, 34);Grilla.add(eti31);
		eti32.setBounds(442, 34, 34, 34);Grilla.add(eti32);
		eti33.setBounds(476, 34, 34, 34);Grilla.add(eti33);
		eti34.setBounds(510, 34, 34, 34);Grilla.add(eti34);
		eti35.setBounds(544, 34, 34, 34);Grilla.add(eti35);
		eti36.setBounds(578, 34, 34, 34);Grilla.add(eti36);
		eti37.setBounds(0, 68, 34, 34);Grilla.add(eti37);
		eti38.setBounds(34, 68, 34, 34);Grilla.add(eti38);
		eti39.setBounds(68, 68, 34, 34);Grilla.add(eti39);
		eti40.setBounds(102, 68, 34, 34);Grilla.add(eti40);
		eti41.setBounds(136, 68, 34, 34);Grilla.add(eti41);
		eti42.setBounds(170, 68, 34, 34);Grilla.add(eti42);
		eti43.setBounds(204, 68, 34, 34);Grilla.add(eti43);
		eti44.setBounds(238, 68, 34, 34);Grilla.add(eti44);
		eti45.setBounds(272, 68, 34, 34);Grilla.add(eti45);
		eti46.setBounds(306, 68, 34, 34);Grilla.add(eti46);
		eti47.setBounds(340, 68, 34, 34);Grilla.add(eti47);
		eti48.setBounds(374, 68, 34, 34);Grilla.add(eti48);
		eti49.setBounds(408, 68, 34, 34);Grilla.add(eti49);
		eti50.setBounds(442, 68, 34, 34);Grilla.add(eti50);
		eti51.setBounds(476, 68, 34, 34);Grilla.add(eti51);
		eti52.setBounds(510, 68, 34, 34);Grilla.add(eti52);
		eti53.setBounds(544, 68, 34, 34);Grilla.add(eti53);
		eti54.setBounds(578, 68, 34, 34);Grilla.add(eti54);
		eti55.setBounds(0, 102, 34, 34);Grilla.add(eti55);
		eti56.setBounds(34, 102, 34, 34);Grilla.add(eti56);
		eti57.setBounds(68, 102, 34, 34);Grilla.add(eti57);
		eti58.setBounds(102, 102, 34, 34);Grilla.add(eti58);
		eti59.setBounds(136, 102, 34, 34);Grilla.add(eti59);
		eti60.setBounds(170, 102, 34, 34);Grilla.add(eti60);
		eti61.setBounds(204, 102, 34, 34);Grilla.add(eti61);
		eti62.setBounds(238, 102, 34, 34);Grilla.add(eti62);
		eti63.setBounds(272, 102, 34, 34);Grilla.add(eti63);
		eti64.setBounds(306, 102, 34, 34);Grilla.add(eti64);
		eti65.setBounds(340, 102, 34, 34);Grilla.add(eti65);
		eti66.setBounds(374, 102, 34, 34);Grilla.add(eti66);
		eti67.setBounds(408, 102, 34, 34);Grilla.add(eti67);
		eti68.setBounds(442, 102, 34, 34);Grilla.add(eti68);
		eti69.setBounds(476, 102, 34, 34);Grilla.add(eti69);
		eti70.setBounds(510, 102, 34, 34);Grilla.add(eti70);
		eti71.setBounds(544, 102, 34, 34);Grilla.add(eti71);
		eti72.setBounds(578, 102, 34, 34);Grilla.add(eti72);
		eti73.setBounds(0, 136, 34, 34);Grilla.add(eti73);
		eti74.setBounds(34, 136, 34, 34);Grilla.add(eti74);
		eti75.setBounds(68, 136, 34, 34);Grilla.add(eti75);
		eti76.setBounds(102, 136, 34, 34);Grilla.add(eti76);
		eti77.setBounds(136, 136, 34, 34);Grilla.add(eti77);
		eti78.setBounds(170, 136, 34, 34);Grilla.add(eti78);
		eti79.setBounds(204, 136, 34, 34);Grilla.add(eti79);
		eti80.setBounds(238, 136, 34, 34);Grilla.add(eti80);
		eti81.setBounds(272, 136, 34, 34);Grilla.add(eti81);
		eti82.setBounds(306, 136, 34, 34);Grilla.add(eti82);
		eti83.setBounds(340, 136, 34, 34);Grilla.add(eti83);
		eti84.setBounds(374, 136, 34, 34);Grilla.add(eti84);
		eti85.setBounds(408, 136, 34, 34);Grilla.add(eti85);
		eti86.setBounds(442, 136, 34, 34);Grilla.add(eti86);
		eti87.setBounds(476, 136, 34, 34);Grilla.add(eti87);
		eti88.setBounds(510, 136, 34, 34);Grilla.add(eti88);
		eti89.setBounds(544, 136, 34, 34);Grilla.add(eti89);
		eti90.setBounds(578, 136, 34, 34);Grilla.add(eti90);
		eti91.setBounds(0, 170, 34, 34);Grilla.add(eti91);
		eti92.setBounds(34, 170, 34, 34);Grilla.add(eti92);
		eti93.setBounds(68, 170, 34, 34);Grilla.add(eti93);
		eti94.setBounds(102, 170, 34, 34);Grilla.add(eti94);
		eti95.setBounds(136, 170, 34, 34);Grilla.add(eti95);
		eti96.setBounds(170, 170, 34, 34);Grilla.add(eti96);
		eti97.setBounds(204, 170, 34, 34);Grilla.add(eti97);
		eti98.setBounds(238, 170, 34, 34);Grilla.add(eti98);
		eti99.setBounds(272, 170, 34, 34);Grilla.add(eti99);
		eti100.setBounds(306, 170, 34, 34);Grilla.add(eti100);
		eti101.setBounds(340, 170, 34, 34);Grilla.add(eti101);
		eti102.setBounds(374, 170, 34, 34);Grilla.add(eti102);
		eti103.setBounds(408, 170, 34, 34);Grilla.add(eti103);
		eti104.setBounds(442, 170, 34, 34);Grilla.add(eti104);
		eti105.setBounds(476, 170, 34, 34);Grilla.add(eti105);
		eti106.setBounds(510, 170, 34, 34);Grilla.add(eti106);
		eti107.setBounds(544, 170, 34, 34);Grilla.add(eti107);
		eti108.setBounds(578, 170, 34, 34);Grilla.add(eti108);
		eti109.setBounds(0, 204, 34, 34);Grilla.add(eti109);
		eti110.setBounds(34, 204, 34, 34);Grilla.add(eti110);
		eti111.setBounds(68, 204, 34, 34);Grilla.add(eti111);
		eti112.setBounds(102, 204, 34, 34);Grilla.add(eti112);
		eti113.setBounds(136, 204, 34, 34);Grilla.add(eti113);
		eti114.setBounds(170, 204, 34, 34);Grilla.add(eti114);
		eti115.setBounds(204, 204, 34, 34);Grilla.add(eti115);
		eti116.setBounds(238, 204, 34, 34);Grilla.add(eti116);
		eti117.setBounds(272, 204, 34, 34);Grilla.add(eti117);
		eti118.setBounds(306, 204, 34, 34);Grilla.add(eti118);
		eti119.setBounds(340, 204, 34, 34);Grilla.add(eti119);
		eti120.setBounds(374, 204, 34, 34);Grilla.add(eti120);
		eti121.setBounds(408, 204, 34, 34);Grilla.add(eti121);
		eti122.setBounds(442, 204, 34, 34);Grilla.add(eti122);
		eti123.setBounds(476, 204, 34, 34);Grilla.add(eti123);
		eti124.setBounds(510, 204, 34, 34);Grilla.add(eti124);
		eti125.setBounds(544, 204, 34, 34);Grilla.add(eti125);
		eti126.setBounds(578, 204, 34, 34);Grilla.add(eti126);
		eti127.setBounds(0, 238, 34, 34);Grilla.add(eti127);
		eti128.setBounds(34, 238, 34, 34);Grilla.add(eti128);
		eti129.setBounds(68, 238, 34, 34);Grilla.add(eti129);
		eti130.setBounds(102, 238, 34, 34);Grilla.add(eti130);
		eti131.setBounds(136, 238, 34, 34);Grilla.add(eti131);
		eti132.setBounds(170, 238, 34, 34);Grilla.add(eti132);
		eti133.setBounds(204, 238, 34, 34);Grilla.add(eti133);
		eti134.setBounds(238, 238, 34, 34);Grilla.add(eti134);
		eti135.setBounds(272, 238, 34, 34);Grilla.add(eti135);
		eti136.setBounds(306, 238, 34, 34);Grilla.add(eti136);
		eti137.setBounds(340, 238, 34, 34);Grilla.add(eti137);
		eti138.setBounds(374, 238, 34, 34);Grilla.add(eti138);
		eti139.setBounds(408, 238, 34, 34);Grilla.add(eti139);
		eti140.setBounds(442, 238, 34, 34);Grilla.add(eti140);
		eti141.setBounds(476, 238, 34, 34);Grilla.add(eti141);
		eti142.setBounds(510, 238, 34, 34);Grilla.add(eti142);
		eti143.setBounds(544, 238, 34, 34);Grilla.add(eti143);
		eti144.setBounds(578, 238, 34, 34);Grilla.add(eti144);
		eti145.setBounds(0, 272, 34, 34);Grilla.add(eti145);
		eti146.setBounds(34, 272, 34, 34);Grilla.add(eti146);
		eti147.setBounds(68, 272, 34, 34);Grilla.add(eti147);
		eti148.setBounds(102, 272, 34, 34);Grilla.add(eti148);
		eti149.setBounds(136, 272, 34, 34);Grilla.add(eti149);
		eti150.setBounds(170, 272, 34, 34);Grilla.add(eti150);
		eti151.setBounds(204, 272, 34, 34);Grilla.add(eti151);
		eti152.setBounds(238, 272, 34, 34);Grilla.add(eti152);
		eti153.setBounds(272, 272, 34, 34);Grilla.add(eti153);
		eti154.setBounds(306, 272, 34, 34);Grilla.add(eti154);
		eti155.setBounds(340, 272, 34, 34);Grilla.add(eti155);
		eti156.setBounds(374, 272, 34, 34);Grilla.add(eti156);
		eti157.setBounds(408, 272, 34, 34);Grilla.add(eti157);
		eti158.setBounds(442, 272, 34, 34);Grilla.add(eti158);
		eti159.setBounds(476, 272, 34, 34);Grilla.add(eti159);
		eti160.setBounds(510, 272, 34, 34);Grilla.add(eti160);
		eti161.setBounds(544, 272, 34, 34);Grilla.add(eti161);
		eti162.setBounds(578, 272, 34, 34);Grilla.add(eti162);
		eti163.setBounds(0, 306, 34, 34);Grilla.add(eti163);
		eti164.setBounds(34, 306, 34, 34);Grilla.add(eti164);
		eti165.setBounds(68, 306, 34, 34);Grilla.add(eti165);
		eti166.setBounds(102, 306, 34, 34);Grilla.add(eti166);
		eti167.setBounds(136, 306, 34, 34);Grilla.add(eti167);
		eti168.setBounds(170, 306, 34, 34);Grilla.add(eti168);
		eti169.setBounds(204, 306, 34, 34);Grilla.add(eti169);
		eti170.setBounds(238, 306, 34, 34);Grilla.add(eti170);
		eti171.setBounds(272, 306, 34, 34);Grilla.add(eti171);
		eti172.setBounds(306, 306, 34, 34);Grilla.add(eti172);
		eti173.setBounds(340, 306, 34, 34);Grilla.add(eti173);
		eti174.setBounds(374, 306, 34, 34);Grilla.add(eti174);
		eti175.setBounds(408, 306, 34, 34);Grilla.add(eti175);
		eti176.setBounds(442, 306, 34, 34);Grilla.add(eti176);
		eti177.setBounds(476, 306, 34, 34);Grilla.add(eti177);
		eti178.setBounds(510, 306, 34, 34);Grilla.add(eti178);
		eti179.setBounds(544, 306, 34, 34);Grilla.add(eti179);
		eti180.setBounds(578, 306, 34, 34);Grilla.add(eti180);
		eti181.setBounds(0, 340, 34, 34);Grilla.add(eti181);
		eti182.setBounds(34, 340, 34, 34);Grilla.add(eti182);
		eti183.setBounds(68, 340, 34, 34);Grilla.add(eti183);
		eti184.setBounds(102, 340, 34, 34);Grilla.add(eti184);
		eti185.setBounds(136, 340, 34, 34);Grilla.add(eti185);
		eti186.setBounds(170, 340, 34, 34);Grilla.add(eti186);
		eti187.setBounds(204, 340, 34, 34);Grilla.add(eti187);
		eti188.setBounds(238, 340, 34, 34);Grilla.add(eti188);
		eti189.setBounds(272, 340, 34, 34);Grilla.add(eti189);
		eti190.setBounds(306, 340, 34, 34);Grilla.add(eti190);
		eti191.setBounds(340, 340, 34, 34);Grilla.add(eti191);
		eti192.setBounds(374, 340, 34, 34);Grilla.add(eti192);
		eti193.setBounds(408, 340, 34, 34);Grilla.add(eti193);
		eti194.setBounds(442, 340, 34, 34);Grilla.add(eti194);
		eti195.setBounds(476, 340, 34, 34);Grilla.add(eti195);
		eti196.setBounds(510, 340, 34, 34);Grilla.add(eti196);
		eti197.setBounds(544, 340, 34, 34);Grilla.add(eti197);
		eti198.setBounds(578, 340, 34, 34);Grilla.add(eti198);
		eti199.setBounds(0, 374, 34, 34);Grilla.add(eti199);
		eti200.setBounds(34, 374, 34, 34);Grilla.add(eti200);
		eti201.setBounds(68, 374, 34, 34);Grilla.add(eti201);
		eti202.setBounds(102, 374, 34, 34);Grilla.add(eti202);
		eti203.setBounds(136, 374, 34, 34);Grilla.add(eti203);
		eti204.setBounds(170, 374, 34, 34);Grilla.add(eti204);
		eti205.setBounds(204, 374, 34, 34);Grilla.add(eti205);
		eti206.setBounds(238, 374, 34, 34);Grilla.add(eti206);
		eti207.setBounds(272, 374, 34, 34);Grilla.add(eti207);
		eti208.setBounds(306, 374, 34, 34);Grilla.add(eti208);
		eti209.setBounds(340, 374, 34, 34);Grilla.add(eti209);
		eti210.setBounds(374, 374, 34, 34);Grilla.add(eti210);
		eti211.setBounds(408, 374, 34, 34);Grilla.add(eti211);
		eti212.setBounds(442, 374, 34, 34);Grilla.add(eti212);
		eti213.setBounds(476, 374, 34, 34);Grilla.add(eti213);
		eti214.setBounds(510, 374, 34, 34);Grilla.add(eti214);
		eti215.setBounds(544, 374, 34, 34);Grilla.add(eti215);
		eti216.setBounds(578, 374, 34, 34);Grilla.add(eti216);
		eti217.setBounds(0, 408, 34, 34);Grilla.add(eti217);
		eti218.setBounds(34, 408, 34, 34);Grilla.add(eti218);
		eti219.setBounds(68, 408, 34, 34);Grilla.add(eti219);
		eti220.setBounds(102, 408, 34, 34);Grilla.add(eti220);
		eti221.setBounds(136, 408, 34, 34);Grilla.add(eti221);
		eti222.setBounds(170, 408, 34, 34);Grilla.add(eti222);
		eti223.setBounds(204, 408, 34, 34);Grilla.add(eti223);
		eti224.setBounds(238, 408, 34, 34);Grilla.add(eti224);
		eti225.setBounds(272, 408, 34, 34);Grilla.add(eti225);
		eti226.setBounds(306, 408, 34, 34);Grilla.add(eti226);
		eti227.setBounds(340, 408, 34, 34);Grilla.add(eti227);
		eti228.setBounds(374, 408, 34, 34);Grilla.add(eti228);
		eti229.setBounds(408, 408, 34, 34);Grilla.add(eti229);
		eti230.setBounds(442, 408, 34, 34);Grilla.add(eti230);
		eti231.setBounds(476, 408, 34, 34);Grilla.add(eti231);
		eti232.setBounds(510, 408, 34, 34);Grilla.add(eti232);
		eti233.setBounds(544, 408, 34, 34);Grilla.add(eti233);
		eti234.setBounds(578, 408, 34, 34);Grilla.add(eti234);
		agregarEtisEnArreglo();
		
	}
	
	public abstract JPanel getPanel();
	
	public JLabel getEti(int i){
		return Arr[i];
	}
	
	public Grilla getGrillaLog(){
		return gnivelActual;
	}
	
	public Short_Round getSR(){
		return rob;
	}
	
	public Nivel getNiv(){
		return nivel;
	}
	
	private void agregarEtisEnArreglo(){
		
		Arr[0]=eti1;Arr[1]=eti2;Arr[2]=eti3;Arr[3]=eti4;Arr[4]=eti5;
		Arr[5]=eti6;Arr[6]=eti7;Arr[7]=eti8;Arr[8]=eti9;Arr[9]=eti10;
		Arr[10]=eti11;Arr[11]=eti12;Arr[12]=eti13;Arr[13]=eti14;
		Arr[14]=eti15;Arr[15]=eti16;Arr[16]=eti17;Arr[17]=eti18;
		Arr[18]=eti19;Arr[19]=eti20;Arr[20]=eti21;Arr[21]=eti22;
		Arr[22]=eti23;Arr[23]=eti24;Arr[24]=eti25;Arr[25]=eti26;
		Arr[26]=eti27;Arr[27]=eti28;Arr[28]=eti29;Arr[29]=eti30;
		Arr[30]=eti31;Arr[31]=eti32;Arr[32]=eti33;Arr[33]=eti34;
		Arr[34]=eti35;Arr[35]=eti36;Arr[36]=eti37;Arr[37]=eti38;
		Arr[38]=eti39;Arr[39]=eti40;Arr[40]=eti41;Arr[41]=eti42;
		Arr[42]=eti43;Arr[43]=eti44;Arr[44]=eti45;Arr[45]=eti46;
		Arr[46]=eti47;Arr[47]=eti48;Arr[48]=eti49;Arr[49]=eti50;
		Arr[50]=eti51;Arr[51]=eti52;Arr[52]=eti53;Arr[53]=eti54;
		Arr[54]=eti55;Arr[55]=eti56;Arr[56]=eti57;Arr[57]=eti58;
		Arr[58]=eti59;Arr[59]=eti60;Arr[60]=eti61;Arr[61]=eti62;
		Arr[62]=eti63;Arr[63]=eti64;Arr[64]=eti65;Arr[65]=eti66;
		Arr[66]=eti67;Arr[67]=eti68;Arr[68]=eti69;Arr[69]=eti70;
		Arr[70]=eti71;Arr[71]=eti72;Arr[72]=eti73;Arr[73]=eti74;
		Arr[74]=eti75;Arr[75]=eti76;Arr[76]=eti77;Arr[77]=eti78;
		Arr[78]=eti79;Arr[79]=eti80;Arr[80]=eti81;Arr[81]=eti82;
		Arr[82]=eti83;Arr[83]=eti84;Arr[84]=eti85;Arr[85]=eti86;
		Arr[86]=eti87;Arr[87]=eti88;Arr[88]=eti89;Arr[89]=eti90;
		Arr[90]=eti91;Arr[91]=eti92;Arr[92]=eti93;Arr[93]=eti94;
		Arr[94]=eti95;Arr[95]=eti96;Arr[96]=eti97;Arr[97]=eti98;
		Arr[98]=eti99;Arr[99]=eti100;Arr[100]=eti101;Arr[101]=eti102;
		Arr[102]=eti103;Arr[103]=eti104;Arr[104]=eti105;Arr[105]=eti106;
		Arr[106]=eti107;Arr[107]=eti108;Arr[108]=eti109;Arr[109]=eti110;
		Arr[110]=eti111;Arr[111]=eti112;Arr[112]=eti113;Arr[113]=eti114;
		Arr[114]=eti115;Arr[115]=eti116;Arr[116]=eti117;Arr[117]=eti118;
		Arr[118]=eti119;Arr[119]=eti120;Arr[120]=eti121;Arr[121]=eti122;
		Arr[122]=eti123;Arr[123]=eti124;Arr[124]=eti125;Arr[125]=eti126;
		Arr[126]=eti127;Arr[127]=eti128;Arr[128]=eti129;Arr[129]=eti130;
		Arr[130]=eti131;Arr[131]=eti132;Arr[132]=eti133;Arr[133]=eti134;
		Arr[134]=eti135;Arr[135]=eti136;Arr[136]=eti137;Arr[137]=eti138;
		Arr[138]=eti139;Arr[139]=eti140;Arr[140]=eti141;Arr[141]=eti142;
		Arr[142]=eti143;Arr[143]=eti144;Arr[144]=eti145;Arr[145]=eti146;
		Arr[146]=eti147;Arr[147]=eti148;Arr[148]=eti149;Arr[149]=eti150;
		Arr[150]=eti151;Arr[151]=eti152;Arr[152]=eti153;Arr[153]=eti154;
		Arr[154]=eti155;Arr[155]=eti156;Arr[156]=eti157;Arr[157]=eti158;
		Arr[158]=eti159;Arr[159]=eti160;Arr[160]=eti161;Arr[161]=eti162;
		Arr[162]=eti163;Arr[163]=eti164;Arr[164]=eti165;Arr[165]=eti166;
		Arr[166]=eti167;Arr[167]=eti168;Arr[168]=eti169;Arr[169]=eti170;
		Arr[170]=eti171;Arr[171]=eti172;Arr[172]=eti173;Arr[173]=eti174;
		Arr[174]=eti175;Arr[175]=eti176;Arr[176]=eti177;Arr[177]=eti178;
		Arr[178]=eti179;Arr[179]=eti180;Arr[180]=eti181;Arr[181]=eti182;
		Arr[182]=eti183;Arr[183]=eti184;Arr[184]=eti185;Arr[185]=eti186;
		Arr[186]=eti187;Arr[187]=eti188;Arr[188]=eti189;Arr[189]=eti190;
		Arr[190]=eti191;Arr[191]=eti192;Arr[192]=eti193;Arr[193]=eti194;
		Arr[194]=eti195;Arr[195]=eti196;Arr[196]=eti197;Arr[197]=eti198;
		Arr[198]=eti199;Arr[199]=eti200;Arr[200]=eti201;Arr[201]=eti202;
		Arr[202]=eti203;Arr[203]=eti204;Arr[204]=eti205;Arr[205]=eti206;
		Arr[206]=eti207;Arr[207]=eti208;Arr[208]=eti209;Arr[209]=eti210;
		Arr[210]=eti211;Arr[211]=eti212;Arr[212]=eti213;Arr[213]=eti214;
		Arr[214]=eti215;Arr[215]=eti216;Arr[216]=eti217;Arr[217]=eti218;
		Arr[218]=eti219;Arr[219]=eti220;Arr[220]=eti221;Arr[221]=eti222;
		Arr[222]=eti223;Arr[223]=eti224;Arr[224]=eti225;Arr[225]=eti226;
		Arr[226]=eti227;Arr[227]=eti228;Arr[228]=eti229;Arr[229]=eti230;
		Arr[230]=eti231;Arr[231]=eti232;Arr[232]=eti233;Arr[233]=eti234;
		
	}
	
	protected void AgregarConcreto(int x, int y){
		Objeto conc = new Concreto();
		Piso asfal = new Asfalto(conc);
		Coordenadas C = new Coordenadas(x,y);
		Par<Coordenadas,Piso> Par=new Par<Coordenadas,Piso> (C,asfal);
		gnivelActual.getGrilla().addLast(Par);
		
	}

	protected void AgregarArena(int x, int y){
			Piso arena = new Arena();
			Coordenadas c = new Coordenadas(x,y);
			Par<Coordenadas,Piso> par=new Par<Coordenadas,Piso> (c,arena);
			gnivelActual.getGrilla().addLast(par);
		}
	
	protected void AgregarArenaMov(int x, int y){
		Piso arena = new ArenaMovediza(gnivelActual);
		Coordenadas c = new Coordenadas(x,y);
		Par<Coordenadas,Piso> par=new Par<Coordenadas,Piso> (c,arena);
		gnivelActual.getGrilla().addLast(par);
	}
	
	protected void AgregarAsfalto(int x, int y){
			Piso asfal = new Asfalto();
			Coordenadas c = new Coordenadas(x,y);
			Par<Coordenadas,Piso> par=new Par<Coordenadas,Piso> (c,asfal);
			gnivelActual.getGrilla().addLast(par);
		}
		
	protected void AgregarLava(int x, int y){
			Piso Lav = new Lava();
			Coordenadas c = new Coordenadas(x,y);
			Par<Coordenadas,Piso> par=new Par<Coordenadas,Piso> (c,Lav);
			gnivelActual.getGrilla().addLast(par);
		}
		
	protected void AgregarAgua(int x, int y){
		Piso agu = new Agua();
		Coordenadas c = new Coordenadas(x,y);
		Par<Coordenadas,Piso> par=new Par<Coordenadas,Piso> (c,agu);
		gnivelActual.getGrilla().addLast(par);
	}
	
	protected void AgregarPortal(int x, int y, int x1, int y1){
		Coordenadas c = new Coordenadas(x,y);
		Coordenadas ll = new Coordenadas(x1,y1);
		Piso por = new Portal (gnivelActual,ll);
		Par<Coordenadas,Piso> par=new Par<Coordenadas,Piso> (c,por);
		gnivelActual.getGrilla().addLast(par);
	}
	
	public abstract void establecerObjetos(JPanel Grilla);
	
	public abstract void sacarPanel (Coordenadas C);
	
	public abstract void ponerPanel (Coordenadas C);
	
	
	
}
